From: Samuel Thibault Date: Thu, 21 Jun 2018 13:58:39 +0000 (+0200) Subject: HighContrast: Restore expander size X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~34^2~8^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=660087db42303bd4738538c93e95ce7fb7a0f34b;p=gtk%2B3.0.git HighContrast: Restore expander size Expanders used to be 16px high. With the move from the gtk2 rendering to gtk3 rendering they shrunk to 12px, making them hard to see, because it's now the icon which is 16px high and the icon contains transparent borders. This makes the HighContrast theme use 24px icons instead, to restore 16px expanders. This may expander some containers a bit. Closes #1046 --- diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index 200c9497ea..b31388a08b 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -1368,7 +1368,7 @@ treeview.view { -GtkTreeView-grid-line-pattern: ''; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; - -GtkTreeView-expander-size: 16; + -GtkTreeView-expander-size: 24; border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color, border-top-color: $bg_color; // while this is the grid lines color, better then nothing @@ -2832,8 +2832,8 @@ row.activatable { expander { title > arrow { - min-width: 16px; - min-height: 16px; + min-width: 24px; + min-height: 24px; -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); } diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css b/gtk/theme/HighContrast/gtk-contained-inverse.css index 5ced7557b7..1d6d26fb5d 100644 --- a/gtk/theme/HighContrast/gtk-contained-inverse.css +++ b/gtk/theme/HighContrast/gtk-contained-inverse.css @@ -548,7 +548,7 @@ window.csd > .titlebar:not(headerbar) { padding: 0; background-color: transparen .path-bar button image { padding-top: 1px; } /************** Tree Views * */ -treeview.view { -GtkTreeView-grid-line-width: 1; -GtkTreeView-grid-line-pattern: ''; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 16; border-left-color: #888888; border-top-color: #000; } +treeview.view { -GtkTreeView-grid-line-width: 1; -GtkTreeView-grid-line-pattern: ''; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 24; border-left-color: #888888; border-top-color: #000; } treeview.view:selected { border-radius: 0; } @@ -1240,7 +1240,7 @@ row:hover, row.activatable:hover { transition: none; } .app-notification border, .app-notification.frame border { border-width: 0; } /************* Expanders * */ -expander title > arrow { min-width: 16px; min-height: 16px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } +expander title > arrow { min-width: 24px; min-height: 24px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } expander title > arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); } diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css index 379fea90ce..377e18930d 100644 --- a/gtk/theme/HighContrast/gtk-contained.css +++ b/gtk/theme/HighContrast/gtk-contained.css @@ -552,7 +552,7 @@ window.csd > .titlebar:not(headerbar) { padding: 0; background-color: transparen .path-bar button image { padding-top: 1px; } /************** Tree Views * */ -treeview.view { -GtkTreeView-grid-line-width: 1; -GtkTreeView-grid-line-pattern: ''; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 16; border-left-color: gray; border-top-color: #fff; } +treeview.view { -GtkTreeView-grid-line-width: 1; -GtkTreeView-grid-line-pattern: ''; -GtkTreeView-tree-line-width: 1; -GtkTreeView-tree-line-pattern: ''; -GtkTreeView-expander-size: 24; border-left-color: gray; border-top-color: #fff; } treeview.view:selected { border-radius: 0; } @@ -1246,7 +1246,7 @@ row:hover, row.activatable:hover { transition: none; } .app-notification border, .app-notification.frame border { border-width: 0; } /************* Expanders * */ -expander title > arrow { min-width: 16px; min-height: 16px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } +expander title > arrow { min-width: 24px; min-height: 24px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); } expander title > arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }